package com.xnyzc.lhy.mis.entity.cms.config;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * 调度策略
 *
 * @author baoyaze
 * @since 2019-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaSysSchedulingStrategy对象", description = "调度策略")
public class OaSysSchedulingStrategy implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "调度策略ID")
    @TableId(value = "scheduling_strategy_id")
    private Long schedulingStrategyId;

    @ApiModelProperty(value = "策略名称")
    private String schedulingName;

    @ApiModelProperty(value = "城市")
    private String cityId;

    @ApiModelProperty(value = "城市名称")
    @TableField(exist = false)
    private String cityName;

    @ApiModelProperty(value = "订单类型")
    private String orderType;

    @ApiModelProperty(value = "业务类型")
    private String businessType;

    @ApiModelProperty(value = "业务模块")
    private String businessModule;

    @ApiModelProperty(value = "最大派单时长(分钟)")
    private Integer maxTime;

    @ApiModelProperty(value = "最大派单距离")
    private BigDecimal maxDistance;

    @ApiModelProperty(value = "状态:1启用，0未启用")
    private String stateFlag;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String SCHEDULING_STRATEGY_ID = "scheduling_strategy_id";

    public static final String SCHEDULING_NAME = "scheduling_name";

    public static final String CITY_ID = "city_id";

    public static final String ORDER_TYPE = "order_type";

    public static final String BUSINESS_TYPE = "business_type";

    public static final String BUSINESS_MODULE = "business_module";

    public static final String MAX_TIME = "max_time";

    public static final String MAX_DISTANCE = "max_distance";

    public static final String STATE_FLAG = "state_flag";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
